'use strict'

import request from '@/utils/request'

export function gxNonResponsibilityEmergencyList(parameter) {
  return request({
    url: '/GxNonResponsibilityEmergency/GetPageData',
    method: 'get',
    params: parameter
  })
}

export function gxNonResponsibilityEmergencyDetail(parameter) {
    return request({
      url: '/GxNonResponsibilityEmergency/GetDetail',
      method: 'get',
      params: parameter
    })
  }


  export function gxEmergencyPlanList(parameter){
    return request({
      url:"GxEmergencyPlan/GetPageData",
      method:"get",
      params:parameter
    })
  }

  export function gxEmergencyPlanDetail(parameter) {
    return request({
      url: '/GxEmergencyPlan/GetDetail',
      method: 'get',
      params: parameter
    })
  } 

  
  export function gxPreWorkMettingList(parameter){
    return request({
      url:"GxPreWorkMetting/GetPageData",
      method:"get",
      params:parameter
    })
  }

  export function gxPreWorkMettingDetail(parameter) {
    return request({
      url: '/GxPreWorkMetting/GetDetail',
      method: 'get',
      params: parameter
    })
  } 
  export function gxPreWorkMettingAdd(data) {
    return request({
      url: '/GxPreWorkMetting/Add',
      method: 'post',
      data
    })
  } 

  export function gxPreWorkMettingUpdate(data) {
    return request({
      url: '/GxPreWorkMetting/Update',
      method: 'post',
      data
    })
  } 
 
  export function delPreWorkMetting(parameter) {
    return request({
      url: '/GxPreWorkMetting/Delete',
      method: 'get',
      params: parameter
    })
  }

  
  //检查计划初始化
export function preWorkMettingInitNewEntity(parameter) {
  return request({
    url: '/GxPreWorkMetting/InitNewEntity',
    method: 'get',
    params: parameter
  })
} 